const request = require('../../utils/request')

/** 获取商品列表 */
export function fetchGoodsPageList(param) {
  const url = "shop/listPage"
  return request(url, param, 'GET');
}

/** 获取商品列表 */
export function fetchInfoByGNumber(gNumber) {
  const url = "shop/fetchInfoByGNumber/" + gNumber
  return request(url, {}, 'GET');
}

/** 获取首页展示分类 */
export function fetchCategory() {
  const url = "category/fetchCategory"
  return request(url, {}, 'GET');
}

/** 获取商品分类树 */
export function fetchCategoryTree() {
  const url = "category/fetchCategoryTree"
  return request(url, {}, 'GET');
}